//
//  TimerCollectionViewCell.m
//  Journey
//
//  Created by dllo on 16/6/4.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TimerCollectionViewCell.h"

@implementation TimerCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    
    if (self) {
        [self createTimer];
    }
    return self;
}


-(void)createTimer{
    
//     self.image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"list_tab_left"]];
//    self.image.frame = self.contentView.bounds;
//    [self.contentView addSubview:self.image];
    
    self.label = [[UILabel alloc] init];
   // self.label.backgroundColor = [UIColor yellowColor];
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.highlightedTextColor = YNColor(34, 139, 34);
    [self.contentView addSubview:self.label];
    
   
    
    
    self.view = [[UIView alloc] init];
    self.view.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
        [self.contentView addSubview:self.view];
    
    self.backView = [[UIView alloc] init];
    self.backView.backgroundColor = YNColor(34, 139, 34);
    self.backView.frame = CGRectMake(0, self.contentView.frame.size.height, self.contentView.frame.size.width, 3);
    [self.view addSubview:self.backView];
    
    self.selectedBackgroundView = self.view;
    
    
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.label.frame = self.contentView.bounds;
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
